Skip to content

feat(storage): add samples and system tests for GCS bucket IP filtering operations#5

Open
thiyaguk09 wants to merge 4 commits into
mainfrom
feat-bucket-ip-filter
Open

feat(storage): add samples and system tests for GCS bucket IP filtering operations#5
thiyaguk09 wants to merge 4 commits into
mainfrom
feat-bucket-ip-filter

Conversation

@thiyaguk09

Copy link
Copy Markdown
Owner

Description

Fixes #

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

  • I have followed guidelines from CONTRIBUTING.MD and Samples Style Guide
  • Tests pass: npm test (see Testing)
  • Lint pass: npm run lint (see Style)
  • Required CI tests pass (see CI testing)
  • These samples need a new API enabled in testing projects to pass (let us know which ones)
  • These samples need a new/updated env vars in testing projects set to pass (let us know which ones)
  • This pull request is from a branch created directly off of GoogleCloudPlatform/nodejs-docs-samples. Not a fork.
  • This sample adds a new sample directory, and I updated the CODEOWNERS file with the codeowners for this sample
  • This sample adds a new sample directory, and I created GitHub Actions workflow for this sample
  • This sample adds a new Product API, and I updated the Blunderbuss issue/PR auto-assigner with the codeowners for this sample
  • Please merge this PR for me once it is approved

Note: Any check with (dev), (experimental), or (legacy) can be ignored and should not block your PR from merging (see CI testing).

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces several new scripts to manage Google Cloud Storage bucket IP filtering configurations, including enabling, disabling, retrieving, listing, and deleting specific IP filter rules, along with corresponding system tests. The review feedback highlights three key areas for improvement: optimizing listBucketIpFilters.js to avoid redundant metadata API calls (preventing an N+1 query issue) and safely accessing metadata properties; fixing a correctness bug in enableBucketIpFilter.js where the filter mode is not updated if an existing configuration is present; and utilizing the spread operator in both enableBucketIpFilter.js and deleteBucketIpFilterRules.js to preserve other properties within the publicNetworkSource configuration.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread storage/listBucketIpFilters.js
Comment thread storage/enableBucketIpFilter.js
Comment thread storage/deleteBucketIpFilterRules.js
@thiyaguk09 thiyaguk09 force-pushed the feat-bucket-ip-filter branch from 3331e5e to 97e2c30 Compare June 12, 2026 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants